﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="register_modify.aspx.cs" Inherits="WebSite.cn.register_modify" %>

<%@ Register Src="head.ascx" TagName="head" TagPrefix="uc1" %>
<%@ Register Src="category.ascx" TagName="category" TagPrefix="uc2" %>
<%@ Register Src="bottom.ascx" TagName="bottom" TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title><%=WebSite.info.info1("", "shoptitle")%></title>
    <meta name="Description" content="<%=WebSite.info.info1("","shopcontent")%>" /> 
    <meta name="Keywords" content="<%=WebSite.info.info1("","shopkey")%>" />
    <link href="style.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" src="../js/function.js"></script>
   
</head>
<body>
    <center>
	<uc1:head ID="head_1" runat="server" />
<div id="container">
   
   
	  <div class="title">
	     
			<p>修改资料</p>
              <div style="width:100%"  align="left" >  <img src="images/span_solid.png" width="980px" alt="" /></div>
	  </div>
	  <div class="pro02"><br />
	    <br />
	    <div><br />
		  <table width="95%" border="0" cellspacing="0" cellpadding="5">
            <form id="frm" runat="server">
            <tr>
              <td width="35%" align="right"><strong>登录用户名&nbsp;</strong></td>
              <td width="65%" align="left"><input name="username" id="username" runat="server" type="text"  />*
                <asp:RequiredFieldValidator   ID="RequiredFieldValidator5" runat="server"   ErrorMessage="登录用户名不能为空" ControlToValidate="username"></asp:RequiredFieldValidator>      
              </td>
            </tr>
            <tr>
              <td width="35%" align="right">&nbsp;</td>
              <td width="65%" align="left">
                  <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                      ControlToValidate="username" ErrorMessage="登录用户名由6-20个字母、数字和下划线组成" 
                      ValidationExpression="^(\w){6,20}"></asp:RegularExpressionValidator>
              </td>
            </tr>
            <tr>
              <td height="35" align="right"><strong>原始密码&nbsp;</strong></td>
              <td align="left"><input name="oldpas" id="oldpas" runat="server" type="password" />
                 <asp:RequiredFieldValidator   ID="RequiredFieldValidator1" runat="server"   ErrorMessage="原始密码不能为空" ControlToValidate="oldpas"></asp:RequiredFieldValidator>
              </td>
            </tr>
            <tr>
              <td align="right"><strong>新密码&nbsp;</strong></td>
              <td align="left"><input name="newpas" id="newpas" runat="server" type="password" />
                <asp:RequiredFieldValidator   ID="RequiredFieldValidator2" runat="server"   ErrorMessage="新密码不能为空" ControlToValidate="newpas"></asp:RequiredFieldValidator>
              </td>
            </tr>
            
            <tr>
              <td align="right">&nbsp;</td>
              <td align="left">
                  <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                      ControlToValidate="newpas" ErrorMessage="密码由6-20位的字母、数字、下划线和点“.”组成" 
                      ValidationExpression="^([A-Za-z0-9]|[._]){5,19}"></asp:RegularExpressionValidator>
              </td>
            </tr>
            
            <tr>
              <td height="35" align="right"><strong>确认新密码&nbsp;</strong></td>
              <td height="35" align="left"><input name="checkpas" id="checkpas" runat="server" type="password" />
                  <asp:CompareValidator ID="CompareValidator1" runat="server" 
                      ControlToCompare="newpas" ErrorMessage="两次密码不一致" 
                      ControlToValidate="checkpas"></asp:CompareValidator>
              </td>
            </tr>
            <tr>
              <td align="right"><strong>姓名&nbsp;</strong></td>
              <td align="left"><input name="cname" type="text" runat="server" id="cname" />*
                <asp:RequiredFieldValidator   ID="RequiredFieldValidator3" runat="server"   ErrorMessage="姓名不能为空" ControlToValidate="cname"></asp:RequiredFieldValidator>
              </td>
            </tr>
            <tr style="display:none">
              <td height="35" align="right"><strong>性别&nbsp;</strong></td>
              <td height="35" align="left">
            
                  <asp:RadioButtonList ID="rbtSex" runat="server" RepeatDirection="Horizontal">
                  <asp:ListItem Text="男" Value="0"></asp:ListItem>
                  <asp:ListItem Text="女" Value="1"></asp:ListItem>
                  </asp:RadioButtonList>
              
              
              </td>
            </tr>
              <tr>
                  <td align="right" height="35"><strong>手机&nbsp;</strong></td>
                  <td align="left" height="35"><input name="phone" type="text" value="<%=tmpPhone %>" /></td>
              </tr>
              <tr>
                  <td align="right" height="35"><strong>联系电话&nbsp;</strong></td>
                  <td align="left" height="35"><input name="tel" type="text" value="<%=tmpTel %>" /></td>
              </tr>
              <tr>
                  <td align="right" height="35"><strong>邮政编码&nbsp;</strong></td>
                  <td align="left" height="35"><input name="post" type="text" value="<%=tmpPost %>" /></td>
              </tr>
              <tr>
                  <td align="right" height="35"><strong>联系地址&nbsp;</strong></td>
                  <td align="left" height="35"><input name="address" type="text" value="<%=tmpAddress %>" /></td>
              </tr>
              <tr>
                  <td align="right" height="35"><strong>E-Mail&nbsp;</strong></td>
                  <td align="left" height="35"><input name="email" id="email" runat="server" type="text"  />*
                    <asp:RequiredFieldValidator   ID="RequiredFieldValidator4" runat="server"   ErrorMessage="E-Mail不能为空" ControlToValidate="email"></asp:RequiredFieldValidator>
                  </td>
              </tr>
              <tr>
                  <td align="right" height="35">&nbsp;</td>
                  <td align="left" height="35">
                  <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                      ControlToValidate="email" ErrorMessage="E-Mail格式不正确" 
                      ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                  </td>
              </tr>
              <tr style="display:none">
                  <td align="right" height="35"><strong>QQ&nbsp;</strong></td>
                  <td align="left" height="35"><input name="qq" type="text" value="<%=tmpQQ %>" /></td>
              </tr>
              <tr style="display:none">
                  <td align="right" height="35"><strong>MSN&nbsp;</strong></td>
                  <td align="left" height="35"><input name="msn" type="text" value="<%=tmpMsn %>" /></td>
              </tr>
            <tr>
              <td height="35" colspan="2" align="center"><asp:Button ID="Button1" runat="server" Text="保存" CssClass="button"  OnClick="Button1_Click" /></td>
            </tr>
            </form>
          </table>
		</div>
	  </div>
   </div>   
   <uc3:bottom ID="bottom_1" runat="server" />

</center>
</body>
</html>
